<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
        $pwd=$_REQUEST['pwd'];
		$sql="select * from `".$oto."_users` where `userId`='".$user_id."' and userFlag='1' LIMIT 1";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$user_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		$sql="select * from `".$oto."_users` where `userId`='".$user_id."' and userFlag='1' and payPwd='{$pwd}' LIMIT 1";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$isPay[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(!isset($isPay))
		{
			$data[0]['pan']=-1;
		}
		else
		{
			$data[0]['pan']=1;
		}
		echo json_encode($data);
?>